<!DOCTYPE html>
<html>
<head lang="zh-CN">
    <meta charset="UTF-8">
    <!--以最新的IE浏览器引擎去渲染-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <!--如果是双核浏览器，则使用webkit内核渲染-->
    <meta name="renderer" content="webkit"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title></title>
    <meta name="description" content=""/>
    <meta name="keyword" content=""/>
    <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/mystyle.css" />
    <link rel="stylesheet" href="__PUBLIC__/frame/layui/css/layui.css">
    <link rel="stylesheet" href="__PUBLIC__/frame/static/css/style.css">
    <script type="text/javascript" src="__PUBLIC__/js/jquery1.12.4.js"></script>
    <script type="text/javascript" src="__PUBLIC__/frame/layui/layui.js"></script>
    <link rel="icon" href="__PUBLIC__/frame/static/image/code.png">
</head>
<body>
<style>
    .layui-form-label{
        width: 89px;
        margin-left: -50px;
    }
    .layui-form-item .layui-inline{
        margin-bottom: 0;
    }
    .layui-form-select{
        margin-right: 30px;
    }
    .layui-select-title input{
        width: 180px; 
    }
</style>
<div class="right">
    <div class="mg20 row1">
        <div class="search box">
            <div class="content">
                <div class="title">
                    <h1>信息查询</h1>
                </div>
                <div class="body">
                    <ul id="search" class="tag">
                        <li class="active" data-id="people">个人信息</li>
                        <li data-id="work">单位信息</li>
                        <li data-id="house">房屋信息</li>
                        <li data-id="car">车辆信息</li>
                    </ul>
                    <div class="tag" data-id="search">

                        <!-- 人 -->
                        <div class="search-content" data-id="people">
                            <form  class="layui-form">
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">姓名:</label>
                                        <div class="layui-input-inline">
                                            <input type="tel" name="name" id="name" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">国籍:</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="guoji" id="guoji" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-inline"><!-- lay-verify="date" -->
                                        <label class="layui-form-label">出生年月:</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="date" id="date"  placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
                                            </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">身份证号:</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="idcard" id="idcard" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                </div>   
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">民族:</label>
                                        <div class="layui-input-inline">
                                            <input type="tel" name="minzu" id="minzu" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">性别:</label>
                                        <!-- <div class="layui-input-inline"> -->
                                            <div class="layui-input-inline">
                                                <input type="radio" name="sex" value="1" title="男" >
                                                <input type="radio" name="sex" value="0" title="女">
                                                <input type="radio" name="sex" value="-1" title="未知" checked="">
                                        </div>
                                        <!-- </div> -->
                                    </div>
                                </div>      
                                <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">学历:</label>
                                    <div class="layui-input-inline">
                                        <input type="tel" name="education" id="education" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">婚姻状态:</label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="hunyin" value="1" title="是">
                                                <input type="radio" name="hunyin" value="0" title="否">
                                                <input type="radio" name="hunyin" value="-1" title="未知" checked="">
                                            </div>
                                    </div>
                                </div>  
                                <div class="layui-form-item">
                                    <label class="layui-form-label">是否重点人口:</label>
                                    <div class="layui-input-block">
                                        <input type="radio" name="zhongdian" value="1" title="是">
                                        <input type="radio" name="zhongdian" value="0" title="否">
                                        <input type="radio" name="zhongdian" value="-1" title="未知" checked="">
                                    </div>
                                </div>                        
                                <div class="layui-form-item" style="margin-top:-20px;">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" type="button" id="charen" style="margin-left: 150px;width: 20%;" lay-submit="" lay-filter="charen">查询</button>
                                        <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
                                    </div>
                                </div>

                                <!-- <div class="clear"></div> -->
                            </form>
                        </div>

                        <!-- 单位 -->
                        <div class="search-content" data-id="work">
                            <form  class="layui-form">
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单位名称:</label>
                                        <div class="layui-input-inline">
                                            <input type="tel" name="workname" id="workname" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label  style="width: 113px;" class="layui-form-label">单位地址:</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="location" id="location" lay-verify="" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                </div>        
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">法人名称:</label>
                                        <div class="layui-input-inline">
                                            <input type="tel" name="faren_name" id="faren_name" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label style="width: 113px;" class="layui-form-label">保卫负责人:</label>
                                        <div class="layui-input-inline">
                                            <input type="tel" name="baowei_name" id="baowei_name" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                </div>                          
                                <div class="layui-form-item" style="margin-top: 117px;">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" type="button" id="chadanwei"  style="margin-left: 150px;width: 20%;" lay-submit="" lay-filter="chadanwei">查询</button>
                                        <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
                                    </div>
                                </div>

                                <!-- <div class="clear"></div> -->
                            </form>
                        </div>

                        <!-- 房 -->
                        <div class="search-content" data-id="house">
                            <form  class="layui-form">
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label  class="layui-form-label" style="width: 78px;">请选择街道:</label>
                                        <div class="layui-input-inline">
                                            <select name="quiz2">
                                                <option value="">请选择街道</option>                <option value="温州">温州</option>
                                                <option value="温州">台州</option>
                                                <option value="温州">绍兴</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label   class="layui-form-label" style="width: 78px;">请选择小区:</label>
                                        <div class="layui-input-inline">
                                            <select name="quiz2">
                                                <option value="">请选择小区</option>
                                                <option value="杭州">杭州</option>
                                                <option value="温州">温州</option>
                                                <option value="温州">台州</option>
                                                <option value="温州">绍兴</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>        
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label   class="layui-form-label" style="width: 78px;">请选择楼号:</label>
                                        <div class="layui-input-inline">
                                            <select name="quiz2">
                                                <option value="">请选择楼号</option>
                                                <option value="杭州">杭州</option>
                                                <option value="温州">温州</option>
                                                <option value="温州">台州</option>
                                                <option value="温州">绍兴</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label  class="layui-form-label" style="width: 78px;">请选择房间:</label>
                                        <div class="layui-input-inline">
                                            <select name="quiz2">
                                                <option value="">请选择房间号</option>
                                                <option value="杭州">杭州</option>
                                                <option value="温州">温州</option>
                                                <option value="温州">台州</option>
                                                <option value="温州">绍兴</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>                          
                                <div class="layui-form-item" style="margin-top: 117px;">
                                    <div class="layui-input-block">
                                        <button class="layui-btn"  type="button" id="chafang" style="margin-left: 150px;width: 20%;" lay-submit="" lay-filter="chafang">查询</button>
                                        <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
                                    </div>
                                </div>

                                <!-- <div class="clear"></div> -->
                            </form>
                        </div>

                        <!-- 车 -->
                        <div class="search-content" data-id="car">
                            <form  class="layui-form">
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">车牌号:</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="che_number" id="che_number" autocomplete="off" class="layui-input"><!-- lay-verify="phone" -->
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">车主姓名:</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="che_name" id="che_name" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">车辆颜色:</label>
                                            <div class="layui-input-inline">
                                            <input type="text" name="color" id="color" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">车型:</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="type" id="type" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                </div>                                 
                                <div class="layui-form-item"  style="margin-top: 125px;">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" type="button" id="chache" style="margin-left: 150px;width: 20%;" lay-submit="" lay-filter="chache">查询</button>
                                        <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
                                    </div>
                                </div>

                                <!-- <div class="clear"></div> -->
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="preview box">
            <div class="content">
                <div class="title">
                    <h1>信息预览</h1>
                </div>
                <div class="body" id="xxylk">
                    <p style="font-size:30px; font-weight: 200;margin-left: 50px;">请先输入查询条件,点击查询结果中需详细了解的项可在此部分预览显示</p>
                </div>
            </div>
        </div>
        <div class="clear"></div> 
    </div> 
    <div class="mg20 row2">
        <!-- <div class="search-list box"> -->
            <fieldset class="layui-elem-field layui-field-title" style="background:white; margin-top: 20px;">
                <legend style="padding-top: 5px;">查询结果</legend>
            </fieldset>
            <div id="jieguo" class="jieguo">
                <!-- <table class="layui-table"> -->
                    <p style="font-weight: 200;margin-left: 50px;">无,请输入查询条件后查询</p>
                <!-- </table> -->
            </div>
        <!-- </div> -->
        <!-- <div class="clear"></div> -->
    </div>
</div>

<script type="text/javascript">
    //时间戳转化函数
    function getMyDate(str) {
        var oDate = new Date(str),
        oYear = oDate.getFullYear(),
        oMonth = oDate.getMonth() + 1,
        oDay = oDate.getDate(),
        oHour = oDate.getHours(),
        oMin = oDate.getMinutes(),
        oSen = oDate.getSeconds(),
        oTime = oYear + '-' + getzf(oMonth) + '-' + getzf(oDay) ; //最后拼接时间  + ' ' + getzf(oHour) + ':' + getzf(oMin) + ':' + getzf(oSen) 
        return oTime;
    };
    //补0操作
    function getzf(num) {
        if (parseInt(num) < 10) {
            num = '0' + num;
        }
        return num;
    }
    //查人按钮点击执行
    $('#charen').on('click',function(){
        //非全空验证
        var name = document.getElementById("name").value;
        var guoji = document.getElementById("guoji").value;
        var date = document.getElementById("date").value;
        var idcard = document.getElementById("idcard").value; 
        var minzu = document.getElementById("minzu").value; 
        var sex = $("input[name='sex']:checked").val();
        var education = document.getElementById("education").value; 
        var hunyin = $("input[name='hunyin']:checked").val(); 
        var zhongdian = $("input[name='zhongdian']:checked").val();
        if (name=="" && guoji=="" && date==""&& idcard==""&& minzu==""&& sex==-1&& education==""&& hunyin==-1 && zhongdian==-1) {
            alert("请至少输入一个查询条件");
            return false;
        }
        var dataa={
            name:name,
            guoji:guoji,
            date:date,
            idcard:idcard,
            minzu:minzu,
            sex:sex,
            education:education,
            hunyin:hunyin,
            zhongdian:zhongdian,
        }         
        //返回结果
        $.post("__MODULE__/Jmxxcx/ren_select",dataa,function(res){
            var data = JSON.parse(res);
            // console.log(data);
            var html_che = "";
            if (data != 0) {
                html_che+='<table class="layui-table"><colgroup><col width="150"><col width="60"><col width="150"><col width="106"><col width="175"><col width="60"><col width="60"><col width="88"><col width="160"></colgroup><thead style="width:100%;"><tr><th>姓名</th><th>性别</th><th>国籍</th><th>出生日期</th><th>身份证号</th><th>民族</th><th>学历</th><th>婚姻状况</th><th>是否重点人</th></tr></thead><tbody style="width:100%;">';
                for(let i = 0;i < data.length;i++){
                    // console.log(data[i]['cheid']);
                    html_che+=`<tr id="${data[i]['id']}" onclick='rengailan(this)'><td>${data[i]['name']}</td><td>${data[i]['sex']==1?'男':'女'}</td><td>${data[i]['guoji']}</td><td>${data[i]['date']}</td><td>${data[i]['idcard']}</td><td>${data[i]['minzu']}</td><td>${data[i]['education']}</td><td>${data[i]['hunyin']}</td><td>${data[i]['is_zhongdian']==1?'是':'否'}</td></tr>`;
                }
                html_che+='</tbody></table>';
            } 
            else{
                html_che+='<p style="color:red;margin-left:150px;">查找结果为空,请重新输入查找条件</p>';
            }
            $('#jieguo').html(html_che);
            
        });
    }); 
    //查车按钮点击执行
    $('#chache').on('click',function(){
        //非全空验证
        var che_number = document.getElementById("che_number").value;
        var name = document.getElementById("che_name").value;
        var color = document.getElementById("color").value;
        var type = document.getElementById("type").value; 

        if (che_number=="" && name=="" && color==""&& type=="") {
            alert("请至少输入一个查询条件");
            return false;
        }
        var dataa={
            che_number:che_number,
            name:name,
            color:color,
            type:type
        }         
        //返回结果
        $.post("__MODULE__/Jmxxcx/che_select",dataa,function(res){
            var data = JSON.parse(res);
            // console.log(data);
            var html_che = "";
            if (data != 0) {
                html_che+='<table class="layui-table"><colgroup><col width="96"><col width="75"><col width="75"><col width="150"><col width="108"><col width="88"><col width="88"><col width="120"><col width="209"></colgroup><thead><tr><th>车牌号</th><th>车主</th><th>车颜色</th><th>车型</th><th>注册日期</th><th>使用性质</th><th>发动机号</th><th>车辆识别代码</th><th>发证日期</th></tr></thead><tbody>';
                for(let i = 0;i < data.length;i++){
                    // console.log(data[i]['cheid']);
                    html_che+=`<tr id="${data[i]['cheid']}" onclick='chegailan(this)'><td>${data[i]['che_number']}</td><td>${data[i]['name']}</td><td>${data[i]['color']}</td><td>${data[i]['type']}</td><td>${getMyDate(data[i]['register_time']*1000)}</td><td>${data[i]['use_xingzhi']}</td><td>${data[i]['engine_num']}</td><td>${data[i]['shibie_daihao']}</td><td>${getMyDate(data[i]['fazheng_time']*1000)}</td></tr>`;
                }
                html_che+='</tbody></table>';
            } 
            else{
                html_che+='<p style="color:red;margin-left:150px;">查找结果为空,请重新输入查找条件</p>';
            }
            $('#jieguo').html(html_che);
            
        });
    }); 
    //查单位按钮点击执行
    $('#chadanwei').on('click',function(){
        //非全空验证
        var workname = document.getElementById("workname").value;
        var location = document.getElementById("location").value;
        var faren_name = document.getElementById("faren_name").value;
        var baowei_name = document.getElementById("baowei_name").value; 

        if (workname=="" && location=="" && faren_name==""&& baowei_name=="") {
            alert("请至少输入一个查询条件");
            return false;
        }
        var dataa={
            workname:workname,
            location:location,
            faren_name:faren_name,
            baowei_name:baowei_name
        }         
        //返回结果
        $.post("__MODULE__/Jmxxcx/danwei_select",dataa,function(res){
            var data = JSON.parse(res);
            // console.log(data);
            var html_danwei = "";
            if (data != 0) {
                html_danwei+='<table class="layui-table"><colgroup><col><col><col><col><col><col><col><col width="187"></colgroup><thead><tr><th>单位编码</th><th>单位名称</th><th>所在地地址</th><th>经纬度</th><th>法人名</th><th>法人身份证号</th><th>保卫负责人</th><th>保安人数</th></tr></thead><tbody>';
                for(let i = 0;i < data.length;i++){
                    // console.log(data[i]['cheid']);
                    html_danwei+=`<tr id="${data[i]['danwei_id']}" onclick='danweigailan(this)'><td>${data[i]['bianma']}</td><td>${data[i]['workname']}</td><td>${data[i]['location']}</td><td>(${data[i]['longitude']},${data[i]['latitude']})</td><td>${data[i]['faren_name']}</td><td>${data[i]['faren_idcard']}</td><td>${data[i]['baowei_name']}</td><td>${data[i]['baoan_num']}</td></tr>`;
                }
                html_danwei+='</tbody></table>';
            } 
            else{
                html_danwei+='<p style="color:red;margin-left:150px;">查找结果为空,请重新输入查找条件</p>';
            }
            $('#jieguo').html(html_danwei);
            
        });
    }); 
    //个人信息概览
    function rengailan(e)
    {
        // alert(e.id);
        var dataa={
            id:e.id
        }  
        $.post("__MODULE__/Jmxxcx/ren_xxylk",dataa,function(res){
            var data = JSON.parse(res);
            // console.log(data); 
            var xxylk = "";
            if (data != 0) {
                xxylk+=`<div class="xxyl_left"><img src="/Public/images/${data['picture']}"height="140"width="118"/></div><ul><li style="padding-left: 120px;"><div class="tittle">姓名:<div class="xxyl"><div style="display: inline;">${data['name']}</div></div></div></li><li style="padding-left: 120px;"><div class="tittle">性别:<div class="xxyl"><div style="display: inline;">${data['sex']==1?'男':'女'}</div></div></div></li><li style="padding-left: 120px;"><div class="tittle">国籍:<div class="xxyl"><div style="display: inline;">${data['guoji']}</div></div></div></li><li style="padding-left: 120px;"><div class="tittle">民族:<div class="xxyl"><div style="display: inline;">${data['minzu']}</div></div></div></li><li><div class="tittle">身份证号:<div class="xxyl"><div style="display: inline;">${data['idcard']}</div></div></div></li><li><div class="tittle">学历:<div class="xxyl"><div style="display: inline;">${data['education']}</div></div></div></li><li><div class="tittle">婚姻状况:<div class="xxyl"><div style="display: inline;">${data['hunyin']}</div></div></div></li><li><div class="tittle">是否重点人口:<div class="xxyl"><div style="display: inline;">${data['is_zhongdian']==1?'是':'否'}</div></div></div></li><li><div class="layui-input-block"style="margin-top:7px;"><a type="button"href="__ROOT__/index.php/Home/Jmxxcx/gr_xiangxi/id/${data['id']}"class="layui-btn"id="renxiangxi"lay-filter="renxiangxi">查询详细</a></div></li></ul>`;
            } 
            else{
                xxylk+='<p style="color:red;">查找结果为空,请重新输入查找条件</p>';
            }
            $('#xxylk').html(xxylk);
            
        });
    }
    //单位概览
    function danweigailan(e)
    {
        // alert(e.id);
        var dataa={
            id:e.id
        }  
        $.post("__MODULE__/Jmxxcx/danwei_xxylk",dataa,function(res){
            var data = JSON.parse(res);
            // console.log(data); 
            var xxylk = "";
            if (data != 0) {
                xxylk+=`<div class="xxyl_left"><img src="/Public/images/${data['yingye_pic']}"height="140"width="118"/></div><ul><li style="padding-left: 120px;"><div class="tittle">单位编码<div class="xxyl"><div style="display: inline;">${data['bianma']}</div></div></div></li><li style="padding-left: 120px;"><div class="tittle">单位名称<div class="xxyl"><div style="display: inline;">${data['workname']}</div></div></div></li><li style="padding-left: 120px;"><div class="tittle">所在地地址<div class="xxyl"><div style="display: inline;">${data['location']}</div></div></div></li><li style="padding-left: 120px;"><div class="tittle">法人名<div class="xxyl"><div style="display: inline;">${data['faren_name']}</div></div></div></li><li><div class="tittle">经纬度<div class="xxyl"><div style="display: inline;">(${data['longitude']},${data['latitude']})</div></div></div></li><li><div class="tittle">法人身份证号<div class="xxyl"><div style="display: inline;">${data['faren_idcard']}</div></div></div></li><li><div class="tittle">保卫负责人<div class="xxyl"><div style="display: inline;">${data['baowei_name']}</div></div></div></li><li><div class="tittle">保卫负责人身份证<div class="xxyl"><div style="display: inline;">${data['baowei_idcard']}</div></div></div></li><li><div class="tittle">保安人数<div class="xxyl"><div style="display: inline;">${data['baoan_num']}</div></div></div></li></ul>`;
            } 
            else{
                xxylk+='<p style="color:red;">查找结果为空,请重新输入查找条件</p>';
            }
            $('#xxylk').html(xxylk);
            
        });
    }
    //车概览 
    function chegailan(e)
    {
        // alert(e.id);
        var dataa={
            cheid:e.id
        }  
        $.post("__MODULE__/Jmxxcx/che_xxylk",dataa,function(res){
            var data = JSON.parse(res);
            // console.log(data);   ${data['pic']}
            var xxylk = "";
            if (data != 0) {
                xxylk+=`<div class="xxyl_left"><img src="/Public/images/${data['pic']}" height="140"width="118"/></div><ul><li style="padding-left: 120px;"><div class="tittle">车牌号<div class="xxyl"><div style="display: inline;">${data['che_number']}</div></div></div></li><li style="padding-left: 120px;"><div class="tittle">sou-main<div class="xxyl"><div style="display: inline;">${data['name']}</div></div></div></li><li style="padding-left: 120px;"><div class="tittle">颜色<div class="xxyl"><div style="display: inline;">${data['color']}</div></div></div></li><li style="padding-left: 120px;"><div class="tittle">车型<div class="xxyl"><div style="display: inline;">${data['type']}</div></div></div></li><li><div class="tittle">注册日期<div class="xxyl"><div style="display: inline;">${getMyDate(data['register_time']*1000)}</div></div></div></li><li><div class="tittle">使用性质<div class="xxyl"><div style="display: inline;">${data['use_xingzhi']}</div></div></div></li><li><div class="tittle">发动机号<div class="xxyl"><div style="display: inline;">${data['engine_num']}</div></div></div></li><li><div class="tittle">识别代码<div class="xxyl"><div style="display: inline;">${data['shibie_daihao']}</div></div></div></li><li><div class="tittle">发证日期<div class="xxyl"><div style="display: inline;">${getMyDate(data['fazheng_time']*1000)}</div></div></div></li></ul>`;
            } 
            else{
                xxylk+='<p style="color:red;">查找结果为空,请重新输入查找条件</p>';
            }
            $('#xxylk').html(xxylk);
            
        });
    }
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
                ,layer = layui.layer
                ,layedit = layui.layedit
                ,laydate = layui.laydate;

        //日期
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#date1'
        });

    });
</script>
<script>
    $(function(){
        $("#search li").click(function(){
            $("#search li").removeClass("active")
            $(this).addClass("active")
            var id = $(this).attr("data-id")
            $("div.tag div.search-content").fadeOut()
            // console.log("div.tag div[data-id='"+id+"']")
            setTimeout(function () {
                $("div.tag div[data-id='"+id+"']").fadeIn()
            },500)

            // console.log($(this).attr("data-id"))
        });

    })
</script>